<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016/6/12
  Time: 10:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>首页</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <meta http-equiv="X-UA-Compatible" content="IE=IE8,chrome=1">
    <meta name="keywords" content="Modern Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andriod Compatible web template,
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design"/>
    <link rel="shortcut icon" href="${pageContext.request.contextPath}/caep.ico" />
    <!-- Bootstrap Core CSS -->
    <link href="${ctx}/static/css/bootstrap.min.css" rel='stylesheet' type='text/css'/>
    <!-- Custom CSS -->
    <link href="${ctx}/static/css/style.css" rel='stylesheet' type='text/css'/>
    <!-- Graph CSS -->
    <link href="${ctx}/static/css/lines.css" rel='stylesheet' type='text/css'/>
    <link href="${ctx}/static/css/font-awesome.min.css" rel="stylesheet" />
    <link href="${ctx}/static/css/custom.css" rel="stylesheet" />
</head>
<body>
<div id="wrapper">
    <!-- Navigation -->
    <div class="top1 navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0;">
        <div class="navbar-header">
            <a class="navbar-brand" href="${pageContext.request.contextPath}/app/api/home/index"></a>
            <ul class="nav navbar-nav navbar-right">
                <li class="dropdown">
                    <a title="首页" href="${pageContext.request.contextPath}/app/api/home/index" class="dropdown-toggle" aria-expanded="false"><i
                            class="fa fa-home"></i></a>
                </li>
                <%--<li class="dropdown">--%>
                    <%--<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i--%>
                            <%--class="fa fa-comments-o"></i><span id="noneRead" class="badge" style="display: none">4</span></a>--%>
                    <%--<ul id="messagebox" class="dropdown-menu" style="left: -280px\0;:root _left:auto\9\0">--%>
                        <%--<li class="dropdown-menu-header">--%>
                            <%--<strong>最新消息</strong>--%>
                        <%--</li>--%>
                        <%--<li class="avatar nonetip">--%>
                            <%--暂无最新的消息--%>
                        <%--</li>--%>
                        <%--<li class="dropdown-menu-footer text-center">--%>
                            <%--<a href="${pageContext.request.contextPath}/app/api/message/index">查看所有消息</a>--%>
                        <%--</li>--%>
                    <%--</ul>--%>
                <%--</li>--%>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle avatar" data-toggle="dropdown"><img
                            style="width: 36px;height: 36px;"
                            src="${pageContext.request.contextPath}/print/${loginUser.userHead}"></a>
                    <ul class="dropdown-menu" style="left: -155px\0;:root _left:auto\9\0">
                        <li class="dropdown-menu-header text-center">
                            <strong>${loginUser.userName}</strong>
                        </li>
                        <%--<li class="m_2"><a href="${pageContext.request.contextPath}/app/api/organization/myOrganization"><i class="fa fa-users"></i> 我的小组--%>
                            <%--<span class="label label-info">42</span>--%>
                        <%--</a></li>--%>
                        <%--<li class="m_2"><a href="${pageContext.request.contextPath}/app/api/document/myDocument"><i class="fa fa-tasks"></i> 我的文档--%>
                            <%--<span class="label label-danger">42</span>--%>
                        <%--</a></li>--%>
                        <%--<li class="m_2"><a href="${pageContext.request.contextPath}/app/api/message/index"><i class="fa fa-envelope-o"></i> 我的消息--%>
                            <%--<span class="label label-success">42</span>--%>
                        <%--</a></li>--%>
                        <%--<li><a href="#"><i class="fa fa-comments"></i> Comments <span class="label label-warning">42</span></a>--%>
                        <%--</li>--%>
                        <%--<li class="dropdown-menu-header text-center">--%>
                            <%--<strong>个人设置</strong>--%>
                        <%--</li>--%>
                        <li class="m_2"><a href="${pageContext.request.contextPath}/app/api/sysMember/updateUserInfo"><i class="fa fa-user"></i> 个人信息</a></li>
                        <li class="m_2"><a href="${pageContext.request.contextPath}/app/api/attendance/toSelfCountList"><i class="fa fa-pie-chart"></i> 考勤统计</a></li>
                        <%--<li class="m_2"><a href="#"><i class="fa fa-wrench"></i> Settings</a></li>--%>
                        <%--<li class="m_2"><a href="#"><i class="fa fa-usd"></i> Payments <span--%>
                                <%--class="label label-default">42</span></a></li>--%>
                        <%--<li class="m_2"><a href="#"><i class="fa fa-file"></i> Projects <span--%>
                                <%--class="label label-primary">42</span></a></li>--%>
                        <%--<li class="divider"></li>--%>
                        <%--<li class="m_2"><a href="#"><i class="fa fa-shield"></i> Lock Profile</a></li>--%>
                        <li class="m_2"><a href="${pageContext.request.contextPath}/app/api/home/loginOut"><i
                                class="fa fa-sign-out<%--fa-lock--%>"></i> 登出</a></li>
                    </ul>
                </li>
            </ul>
        </div>
        <!-- /.navbar-header -->

        <%--<form class="navbar-form navbar-right">--%>
            <%--<input type="text" class="form-control" value="Search..." onfocus="this.value = '';"--%>
                   <%--onblur="if (this.value == '') {this.value = 'Search...';}">--%>
        <%--</form>--%>
        <!-- /.navbar-static-side -->
    </div>
    <div id="page-wrapper">
        <div class="navbar-default sidebar side-nav-bar" role="navigation">
            <div class="sidebar-collapse" id="sidebar-collapse"><i class="fa fa-angle-double-left"></i></div>
            <div class="jquery-accordion-menu-header" style="margin: 10px auto;width: 80%">
            </div>
            <div data-id="menu" style="overflow: auto;">
                <div id="side-menu" class="jquery-accordion-menu">
                    <ul class="top-ul">
                        <c:forEach items="${loginUser.menuTree}" var="menuParent">
                            <li class="top-li">
                                <a data-id="${menuParent.id}" data-title="${menuParent.resourceName}"
                                   href="${pageContext.request.contextPath}${menuParent.resourceUrl}">
                                    <c:choose>
                                        <c:when test="${not empty menuParent.icon}">
                                            <img src="${pageContext.request.contextPath}/print/${menuParent.icon}"
                                                 width="16"
                                                 height="16"/>
                                        </c:when>
                                        <c:otherwise>
                                            <i class="fa fa-dashboard fa-fw nav_icon"></i>
                                        </c:otherwise>
                                    </c:choose>${menuParent.resourceName}
                                </a>
                                <c:if test="${not empty menuParent.children}">
                                    <ul class="submenu">
                                        <c:forEach items="${menuParent.children}" var="menu">
                                            <li>
                                                <a data-id="${menu.id}" data-title="${menu.resourceName}"
                                                   href="${pageContext.request.contextPath}${menu.resourceUrl}">${menu.resourceName}</a>
                                            </li>
                                        </c:forEach>
                                    </ul>
                                </c:if>
                            </li>
                        </c:forEach>
                    </ul>
                    <%--<div style="height: 85px;"></div>--%>
                </div>
            </div>
        </div>
        <div class="graphs" id="globContent">
            <tiles:insertAttribute name="site" ignore="true" />
            <tiles:insertAttribute name="content"/>
        </div>
        <tiles:insertAttribute name="footer"/>
    </div>
</div>
<!-- /#page-wrapper -->
<!-- /#wrapper -->
<!-- Bootstrap Core JavaScript -->
<!-- jQuery -->
<script src="${ctx}/server/system.js"></script>
<script src="${ctx}/static/js/seajs/sea.js"></script>
<script src="${ctx}/static/js/config.js"></script>
<script src="${ctx}/static/js/jquery-1.10.2.js"></script>
<script src="${ctx}/static/js/jquery-ui.min.js"></script>
<%--<script src="${ctx}/static/js/common.js"></script>--%>
<!-- Metis Menu Plugin JavaScript -->
<%--<script src="${ctx}/static/js/metisMenu.min.js"></script>--%>
<%--<!-- Graph JavaScript -->--%>
<%--<script src="${ctx}/static/js/bootstrap.min.js"></script>--%>

<script type="text/javascript">
   seajs.use(["apps/main"], function(){
   });
</script>
<tiles:insertAttribute ignore="true" name="js"/>
</body>
</html>
